﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using ComeSeeThis_MVC2.Models;

namespace ComeSeeThis_MVC2.Controllers
{
    public class TestController : Controller
    {
        //
        // GET: /Test/

        public ActionResult Index()
        {
            var canPerformAction = false;
            if (Security.UserCanPerformOperation(User.Identity.Name, "compadd")) canPerformAction = true;

            ViewData["CanPerformAction"] = canPerformAction;

            return View();
        }

    }
}
